package com.lvmama.rhino.service.impl;

import com.lvmama.rhino.mapper.RecommendStatEntityMapper;
import com.lvmama.rhino.pojo.RecommendStatEntity;
import com.lvmama.rhino.service.RecommendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by wxxuyuan on 2017/2/25.
 */
@Service
public class RecommendServiceImpl implements RecommendService {

    @Autowired
    RecommendStatEntityMapper mapper;

    @Override
    public RecommendStatEntity querryPushStatById(Integer id) {
        return mapper.selectByPrimaryKey(1);
    }

    @Override
    public List<RecommendStatEntity> queryByCon(RecommendStatEntity entity) {
        return mapper.queryByCon(entity);
    }

    @Override
    public int countByCon(RecommendStatEntity entity) {
        return mapper.countByCon(entity);
    }
}
